home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Development Foundation 1.1 for IRIX 6.2
/
SGI IRIX 6.2 Development Foundation 1.1.iso
/
dist
/
patchSG0001645.idb
/
usr
/
include
/
mqueue.h.z
/
mqueue.h
Wrap
C/C++ Source or Header
|
1997-07-01
|
2KB
|
59 lines
/*
* Copyright 1995, Silicon Graphics, Inc.
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
* the contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of Silicon Graphics, Inc.
*
* RESTRICTED RIGHTS LEGEND:
* Use, duplication or disclosure by the Government is subject to restrictions
* as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
* and Computer Software clause at DFARS 252.227-7013, and/or in similar or
* successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
* rights reserved under the Copyright Lanthesaws of the United States.
*/
#ident "$Id: mqueue.h,v 1.5 1996/07/02 18:42:38 joecd Exp $"
#ifndef __MQUEUE_H__
#define __MQUEUE_H__
#ifdef __cplusplus
extern "C" {
#endif
/*
* Interface definition file for POSIX 1003.1b message passing
*/
#include <sys/signal.h>
typedef __psint_t mqd_t;
typedef struct mq_attr {
long mq_flags;
long mq_maxmsg;
long mq_msgsize;
long mq_curmsgs;
} mq_attr_t;
#if _SGIAPI
/* These two definitions are not application use */
#define _MQ_SGI_OPEN_MAX 1028
#define _MQ_SGI_PRIO_MAX 32
#endif /* _SGIAPI */
mqd_t mq_open(const char *, int, ...);
int mq_close(mqd_t);
int mq_unlink(const char *);
int mq_send(mqd_t , const char *, size_t, unsigned int);
ssize_t mq_receive(mqd_t, char *, size_t, unsigned int *);
int mq_notify(mqd_t, const struct sigevent *);
int mq_setattr(mqd_t, const struct mq_attr *, struct mq_attr *);
int mq_getattr(mqd_t, struct mq_attr *);
#ifdef __cplusplus
}
#endif
#endif /* __MQUEUE_H__ */